<?php

namespace app\admin\controller;

use app\admin\services\ExcelOrderBakService;
use app\admin\services\ExcelOrderService;
use app\admin\services\QuotationInService;
use app\BaseController;
use think\facade\Cache;
use think\facade\Validate;

class QuotationIn extends BaseController
{

    protected $middleware = [
        'CheckTokenMiddleware' => ['except' => ['in','excel2', 'refund', 'exportDeliveryOrderExcel','deliveryOrderToBaidu','deliverList','inNow']],
        'LogMiddleware'=>['only'=>['in']]
    ];

    public function index()
    {
        $p = $this->request->get();
        QuotationInService::index($p);
    }

    public function edit()
    {
        $p = $this->request->post();
        $p['user_id'] = 1;
        QuotationInService::edit($p);
    }

    public function del(){
        $p=$this->request->post();
        QuotationInService::del($p);
    }

    public function excel()
    {
        $p = $this->request->get();
        QuotationInService::excel($p);
//        ExcelOrderService::excel($p);
    }

}
